// 引入公共样式
require('../css/commCss/normalize.css')

// 引入重置补充样式
require('../css/commCss/reset.css')

// 引入公共样式
require('../css/commCss/property.css')

// 引入公共模块
require('../css/commCss/basic.css')

// 引入动画库
require('animate.css')

// 引入当前样式
require('../css/advert.less')


document.addEventListener('DOMContentLoaded',function(){
    const time = document.querySelector('.time')
    const jump = document.querySelector('.advert-cont-p')

jump.addEventListener('click',function(){
    location.href = './register.html'
})


let index = 5

setInterval(function(){
    index--
    if(index === 0){
        index = 5
        location.href = './register.html'
    }
    time.textContent = `${index}s`

},1000)
})